package etec.foxsoft.telas;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import javax.swing.SwingConstants;
import javax.swing.JLabel;

import etec.foxsoft.controler.ControllerTelas;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class Escolhercontas extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Escolhercontas frame = new Escolhercontas();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Escolhercontas() {
		setResizable(false);
		setTitle("FoxSoft1.0V");
		setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		setBounds(100, 100, 473, 451);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JButton btnNewButton = new JButton("");
		btnNewButton.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				ControllerTelas.abrirContasAPagar();				
			}
		});
		btnNewButton.setHorizontalAlignment(SwingConstants.RIGHT);
		btnNewButton.setVerticalAlignment(SwingConstants.TOP);
		btnNewButton.setIcon(new ImageIcon(Escolhercontas.class.getResource("/Imagens/Pagar.png")));
		btnNewButton.setBounds(19, 110, 419, 133);
		contentPane.add(btnNewButton);
		
		JButton button = new JButton("");
		button.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				ControllerTelas.abrirContasAReceber();
			}
		});
		button.setIcon(new ImageIcon(Escolhercontas.class.getResource("/Imagens/Receber.png")));
		button.setVerticalAlignment(SwingConstants.TOP);
		button.setHorizontalAlignment(SwingConstants.RIGHT);
		button.setBounds(19, 265, 419, 133);
		contentPane.add(button);
		
		JLabel label = new JLabel("");
		label.setIcon(new ImageIcon(Escolhercontas.class.getResource("/Imagens/Logo_Paris.png")));
		label.setBounds(10, 0, 232, 99);
		contentPane.add(label);
		
		JButton button_1 = new JButton("");
		button_1.setIcon(new ImageIcon(Escolhercontas.class.getResource("/Imagens/Ajuda.png")));
		button_1.setBounds(367, 11, 80, 80);
		contentPane.add(button_1);
	}

}
